Skip to content

Only ignore directories named build if they are in the root#44

Open
jeltz wants to merge 1 commit into
Percona-Lab:masterfrom
jeltz:gitignore-changes
Open

Only ignore directories named build if they are in the root#44
jeltz wants to merge 1 commit into
Percona-Lab:masterfrom
jeltz:gitignore-changes

Conversation

@jeltz

@jeltz jeltz commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

I do not think there is any good reason for having a build directory in a subdirectory, so limit the scope to ignore only exactly what we want to ignore.

I do not think there is any good reason for having a build directory in
a subdirectory, so limit the scope to ignore only exactly what we want
to ignore.
@lukin-oleksiy

Copy link
Copy Markdown
Contributor

Is it just "/build" from the root of the OS filesystem? It is not a common practice to have a build directory in that place and it is outside of git tree as I understand. From the other hand, many IDEs just do builds inside of the tree in the "build" directory.

@jeltz

jeltz commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

No, by root I meant the root of the git repo. Starting paths with a slash whenever possible is a good practice in .gitignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants